import request from '@/request/index.js';

export function getInHospitalRecord(params) {
	return request.get({
		url: '/app-api/hospital/hospitalized-log/hospitalized-log-list-by-id-number',
		params: params || {},
		custom: {
			title: "获取住院记录",
			authentication: true
		}
	});
}

export function submitMedicalRecordPost(data) {
	return request.post({
		url: '/app-api/collaboration/order-medical-record/create',
		data: data || {},
		custom: {
			title: "新增病案邮寄",
			authentication: true
		}
	});
}

export function deleteMedicalRecordPost(params) {
	return request.get({
		url: '/app-api/collaboration/order-medical-record/del-storage-order',
		params: params || {},
		custom: {
			title: "删除病案邮寄",
			authentication: true
		}
	});
}

export function cancelMedicalRecordPost(params) {
	return request.post({
		url: '/app-api/collaboration/order-medical-record/cancel',
		params: params || {},
		custom: {
			title: "病案邮寄取消订单",
			authentication: true
		}
	});
}

export function againMedicalRecordPost(params) {
	return request.get({
		url: '/app-api/collaboration/order-medical-record/reapply-order',
		params: params || {},
		custom: {
			title: "再次申请病案邮寄",
			authentication: true
		}
	});
}

export function payMedicalRecordPost(params) {
	return request.post({
		url: '/app-api/collaboration/order-medical-record/wait-pay',
		params: params || {},
		custom: {
			title: "病案邮寄去支付",
			authentication: true
		}
	});
}

export function repairPayMedicalRecordPost(params) {
	return request.post({
		url: '/app-api/collaboration/order-medical-record/wait-re-pay',
		params: params || {},
		custom: {
			title: "病案邮寄去补费",
			authentication: true
		}
	});
}

export function confirmReceiptMedicalRecordPost(params) {
	return request.post({
		url: '/app-api/collaboration/order-medical-record/confirm-receive',
		params: params || {},
		custom: {
			title: "病案邮寄确认收货",
			authentication: true
		}
	});
}

export function getMedicalRecordList(params) {
	return request.get({
		url: '/app-api/collaboration/order-medical-record/get-order-list',
		params: params || {},
		custom: {
			title: "病案邮寄订单列表",
			authentication: true
		}
	});
}

export function getMedicalRecordDetails(params) {
	return request.get({
		url: '/app-api/collaboration/order-medical-record/get-order-detail',
		params: params || {},
		custom: {
			title: "病案邮寄订单详情",
			authentication: true
		}
	});
}

export function getStagingMedicalRecordDetails(params) {
	return request.get({
		url: '/app-api/collaboration/order-medical-record/get-storage-order',
		params: params || {},
		custom: {
			title: "获取暂存病案邮寄详情",
			authentication: true
		}
	});
}

export function getMedicalRecordLogisticsInfo(params) {
	return request.get({
		url: '/app-api/collaboration/order-medical-record/get-order-routes',
		params: params || {},
		custom: {
			title: "获取病案邮寄订单物流信息",
			authentication: true
		}
	});
}